package com.gpnu7_412.yanzhi.util;

import java.util.Map;

/**
 * @author ZZH
 */
public class ThreadLocalUtil {
    // 提供 ThreadLocal 对象
    private static final ThreadLocal<Map<String, Object>> THREAD_LOCAL = new ThreadLocal<>();

    public static  Map<String, Object> get() {
        return THREAD_LOCAL.get();
    }

    public static void set(Map<String, Object> value) {
        THREAD_LOCAL.set(value);
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }
}
